<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<title></title>
	</head>

	<body>
		<p>
			<input type="text" id="uname" value="" />
		</p>
		<input type="button" id="btn" value="查询" />
	</body>
	<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
	<script type="text/javascript">
		$("#btn").click(function() {
			$.ajax({
				type: "get",
				url: "/search",
				async: true,
				data: {
					name:$("#uname").val()
				},
				success: function(res) {
					console.log(res)
				}
			});
		})
	</script>

</html>